Skip to content

}})} }@)}

GroupedReactiveView.ToProperty(Action>>) method

Defined in

Type: GroupedReactiveView Namespace: ReactiveList.Reactive.Views Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Overloads

  1. public GroupedReactiveView<T, TKey> ToProperty(Action<ReadOnlyObservableCollection<ReactiveGroup<TKey, T>>> propertySetter)

  2. public GroupedReactiveView<T, TKey> ToProperty(out ReadOnlyObservableCollection<ReactiveGroup<TKey, T>> collection)

1. Overload

public GroupedReactiveView<T, TKey> ToProperty(Action<ReadOnlyObservableCollection<ReactiveGroup<TKey, T>>> propertySetter)

View source (opens in a new tab)

Summary: Assigns the current collection of groups to a property using the specified setter action.

Parameters

NameTypeDescription
propertySetterAction>> (opens in a new tab)An action that sets a property to the current read-only observable collection of groups. Cannot be null.

Returns: GroupedReactiveView -- The current instance of GroupedReactiveView to enable method chaining.

Remarks

This method is typically used to bind the internal collection to an external property, such as a view model property, in a reactive UI pattern.

Exceptions

TypeCondition
System.ArgumentNullException (opens in a new tab)Thrown if propertySetter is null.

2. Overload

public GroupedReactiveView<T, TKey> ToProperty(out ReadOnlyObservableCollection<ReactiveGroup<TKey, T>> collection)

View source (opens in a new tab)

Summary: Returns the current instance and provides a read-only observable collection of groups contained in the view.

Parameters

NameTypeDescription
out collectionReadOnlyObservableCollection> (opens in a new tab)When this method returns, contains a read-only observable collection of groups managed by this view.

Returns: GroupedReactiveView -- The current GroupedReactiveView instance.